package com.front.frontdemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//demo
@SpringBootApplication
@RestController
@RequestMapping(value = "/gate")
@EnableCircuitBreaker
@EnableEurekaClient
@EnableFeignClients("com.example.comm")
@EnableDiscoveryClient
@ServletComponentScan
@ComponentScan(basePackages = {"com.example.comm"})
public class FrontDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(FrontDemoApplication.class, args);
        System.out.println("++++++");
    }

}
